using System;
using System.Collections.Generic;
using System.Text;
using Microformats.Interfaces;
using Microformats.Readers;
using Microformats.Readers.Interfaces;

namespace Microformats.Entities
{
    /// <summary>
    /// A Field is a type of IField, this means that an instance of a field object can contain other fields and other microformats (nested microformats).
    /// </summary>
    public class Field : BaseField
    {
        private ICommonInformation fieldConfiguration;

        public Field(ICommonInformation configuration)
        {
            fieldConfiguration = configuration;
            fields = new List<IField>();
            secretFields = new List<IField>();
        }

        /// <summary>
        /// Gets the field configuration.
        /// </summary>
        /// <value>The field configuration.</value>
        public ICommonInformation FieldConfiguration
        {
            get
            {
                return fieldConfiguration;
            }
        }
    }

}
